from rest_framework import serializers
from .models import *


class AuthorSer(serializers.ModelSerializer):
    class Meta:
        model = Author
        fields = '__all__'

class BooksSer(serializers.ModelSerializer):
    class Meta:
        model = Books
        fields = '__all__'